#include "GameData.h"

// PlayerGameData implementation
PlayerGameData::PlayerGameData() 
    : level(1), health(80), maxHealth(80), attackPower(15), defense(5), 
      critChance(10), critMultiplier(2.0), hitChance(85), dodgeChance(8),
      totalKills(0), gameState(GameState::WAITING), isInAutoCombat(false) 
{
}

bool PlayerGameData::isAlive() const 
{
    return health > 0;
}

// MonsterData implementation
MonsterData::MonsterData() 
    : level(1), health(80), maxHealth(80), attackPower(12), 
      defense(2), critChance(5), critMultiplier(1.5), 
      hitChance(80), dodgeChance(0), name("新手哥布林") 
{
}

bool MonsterData::isAlive() const 
{
    return health > 0;
} 